package com.hoshiibuy.purchase.feign;

import com.hoshiibuy.common.rpc.Response;
import com.hoshiibuy.purchase.feign.hystrix.HystrixStoreServiceFeignFallack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:campchen
 * @Date:Created in 下午 05:28 2019/4/29
 * @PACKAGENAME com.hoshiibuy.organization.feign
 * @Description
 */
@FeignClient(name = "hoshiibuy-store", fallback = HystrixStoreServiceFeignFallack.class)
public interface StoreService {
    @GetMapping(value = "/store/plat-store/")
    public Response getById(@PathVariable("id") Long id);
}
